home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr37 / mainhay.zip / MAINHAY.TXT
Text File  |  1993-06-27  |  18KB  |  383 lines

  1. Downloaded from Hayes BBS
  2. June 27, 1993
  3.  
  4.  
  5.  
  6.  
  7. 3.0 Dial-up Access to IBM Mainframes using Hayes Modems
  8.  
  9. This technical note examines methods of using Hayes high speed modems 
  10. to access IBM mainframes via a PC. Techniques for configuring the Hayes
  11. V-series system products, the Smartmodem 1200, the Smartmodem 2400, and
  12. the Smartmodem 2400B for three scenarios are discussed.
  13.  
  14. Asynchronous access to a mainframe equipped with a protocol converter:
  15.  
  16. The major obstacle to connecting PCs to mainframes is that PCs are 
  17. primarily asynchronous devices while mainframes are primarily 
  18. synchronous. Connecting a protocol converter to the mainframe is one 
  19. way to overcome this obstacle. The protocol converter translates 
  20. asynchronous information sent from the PC into a synchronous format, 
  21. then transmits it to the mainframe through a communications controller.
  22.  
  23. Synchronous access using a PC equipped with a synchronous adapter card:
  24.  
  25. Another way to overcome the PC-to-mainframe connection obstacle is to 
  26. install a synchronous interface adapter in the PC. The adapter card 
  27. receives characters from the software, converts the data to a 
  28. synchronous format, then transmits it to the modem, effectively turning
  29. the PC into a synchronous device.
  30.  
  31. Synchronous access with Hayes AutoSync:
  32.  
  33. The simplest solution is Hayes AutoSync. This approach to 
  34. PC-to-mainframe synchronous communications eliminates the need for 
  35. either a synchronous interface adapter card or a protocol converter.
  36.  
  37. Important: In all configurations, the cables used to connect the modem 
  38. to the DTE (whether the PC or the IBM port) must support specific 
  39. signalling requirements, with fully-shielded connectors. The cables 
  40. appropriate for specific modem to PC connections are available from 
  41. Hayes. For a description of each pin and its use in the various 
  42. communication modes, see section 3.4, Modem-to-DTE Cable Requirements, 
  43. at the end of this technical note.
  44.  
  45. 3.1 Accessing IBM Mainframes Asynchronously
  46.  
  47. An IBM mainframe can be accessed with a PC by modifying the mainframe's
  48. front end to support asynchronous communications. The standard 
  49. asynchronous link, however, lacks the data integrity provided by 
  50. synchronous connections. This deficiency, coupled with decreased 
  51. <S>top
  52. throughput, reduces the overall effectiveness of asynchronous mainframe
  53. access. Hayes V-series system products overcome this deficiency by 
  54. providing the error-control and adaptive compression necessary for data
  55. integrity and increased throughput.
  56.  
  57. In this configuration, the PC communicates through its asynchronous 
  58. serial port with a Hayes V-series modem at each end, passing data 
  59. through a protocol converter to the mainframe. The protocol converter 
  60. translates asynchronous data to synchronous data, and vice versa. To 
  61. take full advantage of the V-series features, communication software at
  62. both ends must support local flow control (see Hayes Technical Note #2,
  63. V-series System Products and Local Flow Control) and support a port 
  64. speed greater than the carrier speed. For example, adaptive compression
  65. permits a V-series Smartmodem 2400 to support the increased throughput 
  66. of a PC port speed of 9600 bps. The communication software must also 
  67. support the emulation defined by the configuration of the protocol 
  68. converter.
  69.  
  70. 3.1.1 PC Setup
  71.  
  72. Because the PC communicates through an asynchronous port to the modem, 
  73. no special PC configuration is required. When using a V-series modem, 
  74. communication software such as Smartcom II( or Smartcom III* that is 
  75. designed to support V-series error-control and adaptive compression 
  76. should be used.
  77.  
  78. PC Modem Configuration
  79.  
  80. Hayes Smartmodem products are configured from the factory to attempt an
  81. asynchronous connection. Hayes V-series system products are configured 
  82. from the factory to attempt a connection in error-control mode with the
  83. modem on the other end; if an error-control link cannot be established,
  84. the modem attempts an asynchronous connection. If an error-control link
  85. is required, the V-series system product can be configured to break the
  86. connection if the proper link is not negotiated. Otherwise, no 
  87. configuration of the modem attached to the PC is necessary.
  88.  
  89. When configuration is necessary, (e.g., Hayes modems other than 
  90. V-series system products are used) communication software such as Hayes
  91. Smartcom II or Hayes Smartcom III should be used. The speed at which 
  92. commands are issued to the modem (selectable by the communication 
  93. software used to configure the modem) determines the speed at which the
  94. modem will attempt to connect with the remote system. The modem should 
  95. be configured for the highest speed at which it can communicate, (e.g.,
  96. 2400 bps for a Smartmodem 2400). If either modem cannot support the 
  97. other's speed, the one set to the higher speed will fallback to a speed
  98. common to both modems.
  99. <S>top
  100.  
  101. 3.1.2 Mainframe Setup
  102.  
  103. Setup on the host mainframe end requires special configuration of the 
  104. modem attached to the computer, and of the port to which the modem is 
  105. attached.
  106.  
  107. Mainframe Modem Configuration
  108.  
  109. Modem configuration commands are issued from an asynchronous terminal 
  110. or a PC running asynchronous communication software such as Smartcom II
  111. or Smartcom III. The speed at which commands are issued to the modem 
  112. (selectable by the communication software used to configure the modem) 
  113. determines the speed at which the modem will attempt to connect with 
  114. the remote system. The modem should be configured for the highest speed
  115. at which it can communicate, (e.g., 2400 bps for a Smartmodem 2400). If
  116. either modem cannot support the other's speed, the one set to the 
  117. higher speed will fallback to a speed common to both modems.
  118.  
  119. Connections to a mainframe via modem through a protocol converter, such
  120. as an IBM 3708 Network Conversion Unit ("3708 port"), can be one of 
  121. three types:
  122.  
  123.         %       a V-series error-control link
  124.         %       an asynchronous link with automatic speed buffering
  125.         %       a normal asynchronous link
  126.  
  127. Configuring V-series System Products 
  128.  
  129. Recent V-series system products support Automatic Speed Buffering 
  130. (ASB). This feature is useful for computers and communication programs 
  131. that do not automatically detect and adjust to the communication rate, 
  132. that is, they do not "autobaud." ASB enables computer equipment to send
  133. and receive data to and from the attached modem at a constant 
  134. transmission speed, regardless of the type or speed of the 
  135. modem-to-modem (DCE) connection.
  136.  
  137. To determine if the modem supports ASB, issue AT&Q6<CR>. The modem will
  138. return an OK, if it supports ASB; it will return ERROR if it does not.
  139.  
  140.  Without ASB Support
  141.  
  142. If the modem installed on the mainframe is a V-series system product 
  143. that does not support ASB, the following string configures the modem to
  144. attempt an error-control link and fall back to a regular asynchronous 
  145. link, without ASB if the error-control link cannot be negotiated:
  146.  
  147. <S>top
  148.                 AT&F <CR> Recalls the factory profile from memory
  149.                 ATS0=1M0&D2&S1&C1Q1&K4E0&W0 <CR>
  150.         where:
  151.                 S0=1    Enables auto-answer on ring 1
  152.                 M0      Turns off modem's speaker
  153.                 &D2     Modem hangs up on loss of DTR
  154.                 &S1     DSR operates according to RS-232 specification
  155.                 &C1     DCD tracks actual carrier status
  156.                 Q1      Disables return of result codes
  157.                 &K4     Enables XON/XOFF flow control
  158.                 E0      Disables command state character echo
  159.                 &W0     Writes settings to User Profile 0
  160.  
  161. This command string creates a user profile that is recalled each time
  162. the modem is powered up or reset.
  163.  
  164.  With ASB Support
  165.  
  166. The following string configures a V-series system product that supports
  167. ASB to fall back to asynchronous mode with ASB if an error-control link
  168. cannot be negotiated:
  169.  
  170.                 AT&F <CR> Recalls the factory profile from memory
  171.                 ATS0=1M0&D2&S1&C1Q1E0&K4S36=3&W0<CR>
  172.         where:
  173.                 S0=1    Enables auto-answer on ring 1
  174.                 M0      Turns off modem's speaker
  175.                 &D2     Modem hangs up on loss of DTR
  176.                 &S1     DSR operates according to RS-232 specification
  177.                 &C1     DCD tracks actual carrier status
  178.                 Q1      Disables return of result codes
  179.                 E0      Disables command state character echo
  180.                 &K4     Enables XON/XOFF flow control
  181.                 S36=3   Configures the modem to fall back to ASB (&Q6 mode),
  182.                         if an error-control connection cannot be negotiated
  183.                 &W0     Writes settings to User Profile 0
  184.  
  185. This command string creates a user profile that is recalled each time
  186. the modem is powered up or reset.
  187.  
  188. Configuring a Smartmodem 2400
  189.  
  190. The following command string configures a Smartmodem 2400 (does not 
  191. support error-control or ASB) for an asynchronous link:
  192.  
  193.                 AT&F <CR> Recalls the factory profile from memory
  194.                 ATS0=1M0&D2&S1&C1Q1E0&W0 <CR>
  195. <S>top
  196.         where:
  197.                 S0=1    Enables auto-answer on ring 1
  198.                 M0      Turns off modem's speaker
  199.                 &D2     Modem hangs up on loss of DTR
  200.                 &S1     DSR operates according to RS-232 specification
  201.                 &C1     DCD tracks actual carrier status
  202.                 Q1      Disables return of result codes
  203.                 E0      Disables command state character echo
  204.                 &W0     Writes settings to User Profile 0*
  205.  
  206. This command string creates a user profile that is recalled each time
  207. the modem is powered up or reset.
  208.  
  209. * Early models of the Smartmodem 2400 support a single user profile. 
  210. Refer to the user documentation to determine the capabilities; if the 
  211. manual is unavailable, issue the command lines AT&F <CR> and AT&V <CR> 
  212. (must be issued as two separate command lines) to view the stored 
  213. profile(s) and telephone number(s). If the modem returns an error, only
  214. one profile is available. To configure this modem for the desired mode,
  215. replace &W0 with &W in the command line listed above.
  216.  
  217. Configuring a Smartmodem 1200
  218.  
  219. If a Smartmodem 1200 is attached to the IBM 3708, the link will always 
  220. be a regular asynchronous connection. To configure the Smartmodem 1200,
  221. place the modem's DIP switches in the positions outlined below:
  222.  
  223.         Switch 1:  UP Follows DTR signal; "hangs up" and goes to
  224.                       command state if signal drops
  225.         Switch 2:  UP Factory setting for result codes as words; does
  226.                       not matter because of switch 3 position
  227.         Switch 3:  UP Result codes not displayed
  228.         Switch 4:  DOWN Characters not echoed in command state
  229.         Switch 5:  UP Auto-answer enabled
  230.         Switch 6:  UP Reflects actual result of attempt to connect
  231.         Switch 7:  UP RJ-11, RJ-41S, RJ-45S jack type (for RJ-12 or
  232.                       RJ-13, put switch in DOWN position)
  233.         Switch 8:  DOWN Command recognition enabled (to disable command
  234.                       recognition, put switch in UP position)
  235.  
  236.         Switch 9:  UP Bell 212A communication standard (for CCITT V.22,
  237.                       set switch in DOWN position)
  238.         Switch 10: UP Hangs up and goes to command state (when Switch 1 is UP)
  239.  
  240. No commands need to be issued to the modem. Setting the DIP switches
  241. configures the modem completely.
  242.  
  243. <S>top
  244. Mainframe Port Configuration
  245.  
  246. To configure the 3708 port, access the control terminal and set the 
  247. port configuration using the parameters outlined below. Some parameters
  248. are system-specific; those in bold are related to dial-up access:
  249.  
  250.                         Password
  251.                 7       Password retry limit
  252.                 19      Line speed (Autobaud)
  253.                 S       Line type (Switched)
  254.                 2       Disconnect
  255.                 111111  Translate Option
  256.                 S       Receive Queue Size
  257.                 0       Receive XON/XOFF (Flow Control)
  258.                 0       Transmit XON/XOFF (Flow Control)
  259.                 1       Device Class
  260.                 1       Operating Mode
  261.                 0       Interface Type
  262.                 3       Parity
  263.                 7       Bits/Character
  264.                 1       Number of stop bits
  265.                 00600   Inactivity time out
  266.                 00000   Transmit data threshold
  267.                 00000   Transmit error threshold
  268.                 00000   Receive data threshold
  269.                 00000   Receive error threshold
  270.                 000     Delay after form feed
  271.                 000     Delay after carriage return
  272.                 000     Maximum platen length
  273.                 1       Auto on-hook (Using auto-answer modem)
  274.                 0       CDSTL (Raise DTR when port enabled)
  275.                 0       Send answertone (3708 does not generate answer carrier)
  276.         
  277. 3.2 Accessing IBM Mainframes Synchronously
  278.  
  279. The synchronous adapter card is an efficient way to connect a PC to an 
  280. IBM mainframe. The adapter card enables the PC to emulate an SDLC or 
  281. BISYNC terminal.
  282.  
  283. 3.2.1 PC Setup In this configuration, a synchronous adapter card, an 
  284. external Hayes high speed modem, and synchronous emulation software are
  285. required to connect a PC to an IBM mainframe. Like an asynchronous 
  286. adapter card, the synchronous adapter card is an expansion board 
  287. installed inside the PC. Most cards have jumpers that allow the 
  288. hardware interrupt number and I/O or base address to be defined. This 
  289. important information is needed by the emulation software in order to 
  290. communicate correctly with the emulation board. The adapter card 
  291. <S>top
  292. applies the structure of the synchronizing pattern (HDLC, SDLC, BSC) to
  293. the data stream from the emulation software, and passes the synchronous
  294. data stream to the modem.
  295.  
  296. Though primarily used asynchronously, the V-series system products, the
  297. Smartmodem 2400, and the Smartmodem 2400B are capable of synchronous 
  298. communication. However, to operate synchronously, the modem must be 
  299. physically connected to the synchronous interface adapter. Therefore, 
  300. only the external (standalone) V-series system products and the 
  301. Smartmodem 2400 can be used to communicate synchronously in this 
  302. configuration.
  303.  
  304. PC Modem Configuration
  305.  
  306. To access the modem's synchronous capability the modem must be 
  307. configured for use with a synchronous adapter card.  Modem 
  308. configuration commands are issued from an asynchronous terminal or a PC
  309. running asynchronous communication software such as Smartcom II or 
  310. Smartcom III. The speed at which commands are issued to the modem 
  311. (selectable by the communication software used to configure the modem) 
  312. determines the speed at which the modem will attempt to connect with 
  313. the remote system. The modem should be configured for the highest speed
  314. at which it can communicate, (e.g., 2400 bps for a Smartmodem 2400). If
  315. either modem cannot support the other's speed, the one set to the 
  316. higher speed will fallback to a speed common to both modems.
  317.  
  318. The following command strings configure a Hayes Smartmodem product or 
  319. Hayes V-series system product for synchronous operation:
  320.  
  321.                 AT&F <CR>
  322.                 AT&Z0=x <CR>
  323.                 AT&Q2L1Q1E0&W0 <CR>
  324.         where:
  325.                 &F      Restores factory profile
  326.                 &Z0=x   Stores the host telephone number x in location 0 *
  327.                 &Q2     Selects Synchronous Mode 2 (stored number dial) *
  328.                 L1      Sets speaker level
  329.                 Q1      Disables result code display
  330.                 E0      Disables command state character echo
  331.                 &W0     Writes settings to User Profile 0 *
  332.  
  333. * Early models of the Smartmodem 2400 support only one stored telephone
  334. number and a single user profile. In addition, operating mode selection
  335. is made with the &M command instead of the &Q command. Refer to the 
  336. user documentation to determine the capabilities; if the manual is 
  337. unavailable, issue the command line AT&V <CR>. If the modem returns an 
  338. error, only one telephone number and a single profile is available. To 
  339. <S>top
  340. configure this modem for the desired mode, replace &Z0=x with &Z=x, &Q2
  341. with &M2, and &W0 with &W in the command lines listed above.
  342.  
  343. These command lines create a user profile that is recalled each time 
  344. the modem is powered up or reset.
  345.  
  346. When operating in Synchronous Mode 2, the modem automatically dials the
  347. number stored in location 0 when it detects an off-to-on transition in 
  348. DTR. Once on-line, the modem hangs up and returns to the asynchronous 
  349. command state when it detects an on-to-off transition of DTR exceeding 
  350. the value set in register S25. Almost all synchronous emulati
  351.  
  352. Type Record ID you want more on or <CR> to exit: 87]
  353.  
  354. More data not available for that record ID
  355.  
  356. Type Record ID you want more on or <CR> to exit: 87
  357. Type P to Pause, S to Stop listing
  358.  
  359.  
  360. CONFIGURATION SET UP FOR PERSONAL MODEM 2400 & RBBS-PC
  361. ------------------------------------------------------
  362.  
  363. On selection # 225 in your CONFIG set the values as follows:
  364.  
  365. 1. Reset the modem                    : AT&D2&C1H0
  366. 2. Initialize the modem               : ATQ1S2=255S10=30E0Q0X1S0=254
  367. 3. Count the number of rings          : ATS1?
  368. 4. Answer the phone                   : ATQ0X1V1A
  369. 5. Take the phone off the hook        : ATQ1E1H1
  370. 6. Clear the modem's firmware         : <LEAVE BLANK>
  371. 7. Initialize the modem's firmware    : AT&C1&D2E0V1S0=0
  372. 8. Write to modem's firmware          : <LEAVE BLANK>
  373.  
  374. Be sure to select tiem # 231 to initialize the modem's firmware for
  375. RBBS prior to loading RBBS-PC.
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.